<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ taglib prefix="d" uri="http://dgg.net/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <title></title>
    <c:import url="../../header.jsp"/>
</head>
<body>
<div class="content-warp pb50">
    <div class="bg-warp">
        <!--商机信息 start-->
        <div class="dggui-panel">
            <h3>商机信息</h3>
            <input type="hidden" id="orderNo" value="${order.orderNo}">
            <input type="hidden" id="contractNo" value="${order.contractNo}">
            <table class="dggui-table-info">
                <tbody>
                <tr>
                    <th>商机编号：</th>
                    <td>${order.businessNo}</td>
                    <th>业态：</th>
                    <td>${order.businessTypeName}</td>
                    <th>联系方式：</th>
                    <td>${order.contactPhone}</td>
                </tr>
                <tr>
                    <th>商机跟进人：</th>
                    <td>${order.signUserName}</td>
                    <th></th>
                    <td></td>
                    <th></th>
                    <td></td>
                </tr>
                </tbody>
            </table>
        </div>
        <!--商机信息 end-->
        <!--客户信息 start-->
        <form id="customerJson">
            <div class="dggui-panel">
            <h3>客户信息</h3>
            <table class="dggui-table-info">
                <tbody>
                <tr>
                    <th><span >客户名称：</span></th>
                    <td>
                        ${order.customerName}
                    </td>
                    <th>客户电话：</th>
                    <td>${order.contactPhone}</td>
                    <th><span >身份证号：</span></th>
                    <td>${customerDTO.idCard}</td>
                </tr>
                <tr>
                    <th><span >客户性别：</span></th>
                    <td>
                        ${customerDTO.sex}
                    </td>
                    <th><span >客户年龄：</span></th>
                    <td>${customerDTO.age}</td>
                    <th><span >生日：</span></th>
                    <td>${customerDTO.birthday}</td>
                </tr>
                <tr>
                    <th><span >户口所在地：</span></th>
                    <td>${customerDTO.registeredResidence}</td>
                    <th><span >客户学历：</span></th>
                    <td>
                        ${customerDTO.eduBackground}
                    </td>
                    <th><span >客户婚姻状况：</span> </th>
                    <td>
                        ${customerDTO.maritalStatus}
                    </td>
                </tr>
                <tr>
                    <th><span >客户子女个数：</span></th>
                    <td> ${customerDTO.childrenNum}</td>
                    <th><span >客户地址：</span></th>
                    <td> ${customerDTO.address}</td>
                    <th>邮箱：</th>
                    <td> ${customerDTO.email}</td>
                </tr>
                </tbody>
            </table>
        </div>
        </form>
        <!--客户信息 end-->
        <!--借贷人 start-->
        <form id="concactForm">
            <div class="dggui-panel">
            <h3>借贷人
            </h3>
            <table class="dggui-table cell-border table-form" id="loansTable">
                <thead>
                <th>姓名</th>
                <th>身份</th>
                <th>是否是客户本人</th>
                <th>身份证号码</th>
                <th>联系方式</th>
                <th>婚姻状况</th>
                <th>子女情况</th>
                <th>家属是否知晓</th>
                <th>与借贷人关系</th>
                </thead>
                <tbody>
                <c:forEach items="${contactDTO}" var="key">
                    <tr>
                        <td>${key.name}</td>
                        <td>${key.lenderStatus==0?"主借贷人":"次借贷人"}</td>
                        <td>${key.isSelf==0?"否":"是"}</td>
                        <td>${key.cardId}</td>
                        <td>${key.no}</td>
                        <td>${key.contactMaritalStatus}</td>
                        <td>${key.contactChildrenNum}</td>
                        <td>${key.noKnow==0?"不知晓":"知晓"}</td>
                        <td>${key.relationshipOfCus}</td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
        </form>
        <!--借贷人 end-->
        <!--合同约定 start-->
            <div class="dggui-panel">
            <h3>合同约定</h3>
                <form id="contractForm">
                    <table class="dggui-table-info">
                <tbody>
                <tr>
                    <th><span >需求总金额：</span></th>
                    <td>
                            ${orderJson.loansAmount}
                            <span class="unit"> &nbsp;&nbsp;元</span>
                    </td>
                    <th><span >贷款年限：</span></th>
                    <td>
                        ${orderJson.loansNum} 年
                    </td>
                    <th><span >利率方式：</span></th>
                    <td>
                           ${orderJson.loansRateType}
                    </td>
                    <th><span >贷款利息：</span></th>
                    <td>
                        ${orderJson.loansInterest} <span class="unit">%</span>
                    </td>
                </tr>
                <tr>
                    <th><span >定金：</span></th>
                    <td>
                        ${orderJson.earnestMoney}&nbsp;&nbsp;
                        <span class="unit">元</span>
                    </td>
                    <th></th>
                    <td></td>
                    <th></th>
                    <td></td>
                </tr>
            </table>
                </form>
            <hr>
            <h4>办理业务</h4>
                <form id="businessForm">
                    <table class="dggui-table cell-border table-form">
                        <thead>
                        <th>业务类型</th>
                        <th>产品</th>
                        <th>商品属性</th>
                        <th> 手续费（%）</th>
                        <th>利率方式</th>
                        <th> 需求金额（元）</th>
                        <th>合同编号</th>
                        <th> 建议渠道</th>
                        <th> 流程人员</th>
                        <th>事业部</th>
                        </thead>
                        <tbody>
                        <c:forEach var="key" items="${products}">
                            <tr>
                                <td>
                                ${key.businessProductName}
                                </td>
                                <td>${key.productName}</td>
                                <td>${key.productAttr}</td>
                                <td>${key.serviceCharge}</td>
                                <td>${key.rateType}</td>
                                <td>${key.loanAmount}</td>
                                <td>${key.contractNo}</td>
                                <td>${key.channelName}</td>
                                <td>${key.flowUserName}</td>
                                <td>${key.productOrgName}</td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                </form>
            <div class="textarea-warp">
                <b>抵押物地址：</b>${orderJson.mortgageAddress}
            </div>
        </div>
        <!--合同约定 end-->
        <!--成本费 start-->
        <div class="dggui-panel">
            <h3>成本费</h3>
            <form id="subjectForm">
                <table class="dggui-table cell-border table-form">
                    <thead>
                    <th>科目</th>
                    <th>数量</th>
                    <th>价格</th>
                    </thead>
                    <tbody>
                    <c:forEach items="${subjectDTO}" var="key">
                        <tr>
                            <td>${key.subjectType}</td>
                            <td>${key.subjectNum}</td>
                            <td>
                                    ${key.subjectAmount} <span class="unit">元</span>
                            </td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
            </form>
        </div>
        <!--成本费 end-->
    </div>
</div>

</body>
<c:import url="/WEB-INF/jsp/footer.jsp"/>
</html>
